package com.joe.other;

@FunctionalInterface
public interface PageFunc {
    void run();

    default PageFunc andThen(PageFunc after){
        return () -> {
            this.run();
            after.run();
        };
    }

    default PageFunc compose(PageFunc before){
        return () -> {
            before.run();
            this.run();
        };
    }
}